#include "stdafx.h"
#include "TabPage.h"

TabPage::TabPage(void)
{
	setPosition(vector_2::Zero);
}

TabPage::TabPage(const char* text, Vector2& location)
{
	this->text = text;
	setPosition(location);
}

/*virtual*/ TabPage::~TabPage(void)
{
	for (unsigned int i = 0; i < elements.size(); i++)
		delete elements[i];
}

/*virtual*/ void TabPage::Update(float dt) /*override*/
{
	UiElement::Update(dt);
	for (unsigned int i = 0; i < elements.size(); i++)
		elements[i]->Update(dt);
}

/*virtual*/ void TabPage::Draw(void) /*override*/
{
	UiElement::Draw();

	for (unsigned int i = 0; i < elements.size(); i++)
		elements[i]->Draw();
}